package com.main.usermanagement.domain.user.repository;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.main.usermanagement.domain.user.entity.UserAddress;
import com.main.usermanagement.domain.user.repository.mapper.UserAddressMapper;
import org.springframework.stereotype.Service;

@Service
public class UserAddressRepository extends ServiceImpl<UserAddressMapper, UserAddress> {
    public UserAddress findByUserInfoId(Long userInfoId) {
        return baseMapper.findByUserInfoId(userInfoId);
    }
    public Boolean removeByUserInfoId(Long userInfoId) {
        return baseMapper.removeByUserInfoId(userInfoId);
    }
}
